import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class testcxf {

    public static void main(String[] args) throws Exception {



        JaxWsDynamicClientFactory dcf =JaxWsDynamicClientFactory.newInstance();
        org.apache.cxf.endpoint.Client client =dcf.createClient("http://175.6.20.61:6555/hnjh/services/HnjhTyjkService?wsdl");
        //getUser 为接口中定义的方法名称  张三为传递的参数   返回一个Object数组
        Object[] objects=client.invoke("queryObjectOut","20001","sdfhakldhglahdgahdfg",
                "40Q61","<root><./root>");
        //输出h调用结果
        System.out.println("========================");
        System.out.println(objects[0].toString());
        System.out.println("========================");
    }
}
